package com.sn.author.common.exception;

import com.sn.author.common.enums.ExceptionEnum;

/**
 * @Author xiaom
 * @Date 2020/9/15 21:00
 * @Version 1.0.0
 * @Description <>
 **/
public class AuthorException extends AException {

    public AuthorException(String message) {
        super(message);
    }

    public AuthorException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
    }

    public AuthorException(String message, Throwable cause) {
        super(message, cause);
    }

    public AuthorException() {
        this(ExceptionEnum.PERMISSION_ERR);
    }

}
